{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "!pip install -e ../"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import wandb\n",
    "import time"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "\u001B[34m\u001B[1mwandb\u001B[0m: Currently logged in as: \u001B[33mvanpelt\u001B[0m (use `wandb login --relogin` to force relogin)\n",
      "\u001B[34m\u001B[1mwandb\u001B[0m: Tracking run with wandb version 0.0.40\n",
      "\u001B[34m\u001B[1mwandb\u001B[0m: Syncing run \u001B[33mdeep-elevator-22\u001B[0m\n",
      "\u001B[34m\u001B[1mwandb\u001B[0m: ⭐️ View project at \u001B[34m\u001B[4mhttps://app.wandb.ai/vanpelt/jupyter_test\u001B[0m\n",
      "\u001B[34m\u001B[1mwandb\u001B[0m: 🚀 View run at \u001B[34m\u001B[4mhttps://app.wandb.ai/vanpelt/jupyter_test/runs/155u9ivk\u001B[0m\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n"
     ]
    }
   ],
   "source": [
    "# Single cell logging\n",
    "wandb.init(project=\"jupyter_test\")\n",
    "for i in range(10):\n",
    "    time.sleep(0.5)\n",
    "    wandb.log({\"metric\": i})"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [],
   "source": [
    "for i in range(10):\n",
    "    time.sleep(0.5)\n",
    "    wandb.log({\"metric\": i})"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "\u001B[34m\u001B[1mwandb\u001B[0m: Find user logs for this run at: ./wandb/runs/run-20200813_162851-155u9ivk/logs/debug-20200813_162851-155u9ivk.log\n",
      "\u001B[34m\u001B[1mwandb\u001B[0m: Find internal logs for this run at: ./wandb/runs/run-20200813_162851-155u9ivk/logs/debug-internal-20200813_162851-155u9ivk.log\n",
      "\u001B[34m\u001B[1mwandb\u001B[0m: Run summary:\n",
      "\u001B[34m\u001B[1mwandb\u001B[0m:       metric 9\n",
      "\u001B[34m\u001B[1mwandb\u001B[0m:        _step 9\n",
      "\u001B[34m\u001B[1mwandb\u001B[0m:     _runtime 6\n",
      "\u001B[34m\u001B[1mwandb\u001B[0m:   _timestamp 1597361338\n",
      "\u001B[34m\u001B[1mwandb\u001B[0m: Synced 5 W&B file(s), 0 media file(s), 0 artifact file(s) and 2 other file(s)\n",
      "\u001B[34m\u001B[1mwandb\u001B[0m: \n",
      "\u001B[34m\u001B[1mwandb\u001B[0m: Synced \u001B[33mdeep-elevator-22\u001B[0m: \u001B[34mhttps://app.wandb.ai/vanpelt/jupyter_test/runs/155u9ivk\u001B[0m\n"
     ]
    }
   ],
   "source": [
    "wandb.join()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.5"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
